Magnetized Strings